package com.khoayang.littlefighterchaos.menu;

import java.util.ArrayList;


public class MenuButton extends BaseControl{
	private ArrayList<BaseControl> _ListControl = new ArrayList<BaseControl>();
	
	@Override
	public void add(BaseControl baseControl) {
		//baseControl.Draw();
		get_ListControl().add(baseControl);
		baseControl.set_ParentControl(this);
		//baseControl.checkTouch(x, y);
	}

	@Override
	public void show() {
		for(int i=0;i<get_ListControl().size();i++)
		{
			get_ListControl().get(i).Draw();
		}
	}

	@Override
	public void hide() {
		for(int i=0;i<get_ListControl().size();i++)
		{
			get_ListControl().get(i).UnDraw();
		}
	}

	public ArrayList<BaseControl> get_ListControl() {
		return _ListControl;
	}

	public void set_ListControl(ArrayList<BaseControl> _ListControl) {
		this._ListControl = _ListControl;
	}
}
